﻿using System.Threading.Tasks;

using Microsoft.AspNetCore.Identity;

using Volo.Abp.Application.Services;
using Volo.Abp.Identity;

namespace ProjectTaskManager.Application.Contracts
{
    public interface IAccountAppService : IApplicationService
    {
        Task<SignInResult> LoginAsync(string userName, string password);
        Task<IdentityUserDto> RegisterAsync(RegisterDto input);
        Task LogoutAsync();
        Task<IdentityResult> ChangePasswordAsync(string userName, string oldPassword, string password);
    }
}
